package com.zimi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * model
 *
 * @author lnintr
 * @since 2019-08-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysUserInfo对象", description = "")
public class SysUserInfo extends Model<SysUserInfo> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer sysUserId;

    @ApiModelProperty(value = "职业")
    private String profession;

    private String phone;

    private Date birthday;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "引荐人")
    private Integer referrer;

    @ApiModelProperty(value = "用户状态（1.正常，2.禁用 ）")
    private Integer status;

    @Override
    protected Serializable pkVal() {
        return id;
    }

}
